home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 7_4.lha / 7_4 / main.c < prev    next >
Text File  |  1993-08-08  |  449b  |  20 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <shape.h>
  6. xtern void connectshapes(const shape *a, const shape *b);
  7.  
  8. ain()
  9.  
  10.    screen_init();
  11.    shape* p1 = new rectangle(point(12,10),point(20,20));
  12.    shape* p2 = new line(point(2,2),point(8,4));
  13.    shape_refresh();
  14.    connectshapes(p1, p2);
  15.    screen_refresh();
  16.    screen_end();
  17.    return 0;
  18.  
  19.  
  20.